package com.qt.collection.myset;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Stack;

public class CollectionsTest {
    public static void main(String[] args) {

        ArrayList<String> strList = new ArrayList<>();
        Collections.addAll(strList, "a", "b", "c", "d", "e");
        ArrayList<String> strList2 = new ArrayList<>();
        Collections.copy(strList, strList2);

        System.out.println("strList:" + strList);
        System.out.println("strList2:" + strList2);


    }

}
